Intraoperative repeated pairing of cortical and spinal stimulation (SCAP)